<link href="../addons/jy_newshopfee/custom/templates/mobile/style.css?v=201905251730" rel="stylesheet">
<div class="fui-page fui-page-current page-commission-down">
    <div class="fui-header">
        <div class="fui-header-left">
            <a class="back" ng-click="goback();"></a>
        </div>
        <div class="title">{{pagedata.setting.torder}}({{pagedata.commission_total}}个)</div>
    </div>
    <div class="fui-content">
        <div class='fui-cell-group' style='margin-top:0px;background: #fea23d;color: #fff;'>
            <div class='fui-cell'>
                <div class='fui-cell-info' style='width:auto;color: #fff;'>{{pagedata.setting.commission_total}}：+{{pagedata.commission_money}}元</div>
            </div>
        </div>
        <div class="fui-tab fui-tab-warning" id="tab">
            <a ng-click="pagedata.params.level=1;tool.get_list('jy_newshopfee/agent.order/list/',true)" ng-class="{'active':pagedata.params.level==1}" href="javascript:;">直推({{pagedata.num1}})</a>
			<a ng-click="pagedata.params.level=2;tool.get_list('jy_newshopfee/agent.order/list/',true)" ng-class="{'active':pagedata.params.level==2}" href="javascript:;">间推({{pagedata.num2}})</a>
		</div>
		<div class="fui-list-group order-item" ng-repeat="item in pagedata.list">
                <div class="fui-list external" style="padding: 0.42rem 0.5rem">
                    <div class="fui-list-inner">
                         编号: {{item.ordersn}}
                    </div>
                    <div class="row-remark text-cancel" style="text-align: right;color:#f60">{{item.createtime}}</div>
                </div> 
				<div class="fui-list">
								<div class="fui-list-inner">
									<div class="text">购买者：{{item.member.nickname}}</div>
									<div class="text">购买量：{{item.goodsorder.total}}</div>	
									<div class="text overflow-h">商品名：{{item.goodsorder.title}}</div>
								</div>
								<div class="fui-list-inner">
									<div class="text">奖金类型：{{item.typetitle}}</div>
									<div class="text">奖金额度：{{item.money || '0.00'}}</div>
								</div>
				</div>
        </div>
		<div class='infinite-loading' style="display:none" id="loading_show"><span class='fui-preloader'></span><span class='text'> 正在加载...</span></div>
		<div ng-if="pagedata.list.length==0" class='content-empty' >
			<i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i>
			<br/>
			<p style="color: #999;font-size: .75rem">暂时没有任何数据</p>
		</div>

    </div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
scope.tool.get_list('jy_newshopfee/agent.order/list/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_newshopfee/agent.order/list/');
}
</script>

